<!doctype html>
<html class="no-js" lang="">

<head>
    <meta charset="utf-8">
    <title>正在媒体资源管理系统</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width">
    <link rel="shortcut icon" href="/favicon.ico">

    <!-- Place favicon.ico and apple-touch-icon.png in the root directory -->

    <!-- page level plugin styles -->
    <!-- /page level plugin styles -->

    <!-- build:css({.tmp,app}) styles/app.min.css -->
    <link rel="stylesheet" href="vendor/bootstrap/dist/css/bootstrap.css">
    <link rel="stylesheet" href="vendor/perfect-scrollbar/css/perfect-scrollbar.css">
    <link rel="stylesheet" href="styles/roboto.css">
    <link rel="stylesheet" href="styles/font-awesome.css">
    <link rel="stylesheet" href="styles/panel.css">
    <link rel="stylesheet" href="styles/feather.css">
    <link rel="stylesheet" href="styles/animate.css">
    <link rel="stylesheet" href="styles/urban.css">
    <link rel="stylesheet" href="styles/urban.skins.css">
    <!-- endbuild -->

</head>

<body>

<div class="app layout-fixed-header bg-white usersession">
    <div class="full-height">
        <div class="center-wrapper">
            <div class="center-content">
                <div class="row no-margin">
                    <div class="col-xs-10 col-xs-offset-1 col-sm-6 col-sm-offset-3 col-md-4 col-md-offset-4">
                        <form id="loginform" method="post" target="_self" action="/login.do" role="form"
                              class="form-layout">
                            <div class="text-center mb15">
                                <img src="images/modernsky-now-black.png" width="100" height="100"/>
                            </div>
                            <p class="text-center mb30">欢迎使用Easyjava管理系统</p>

                            <div class="form-inputs">
                                <input name="userName" required type="text" class="form-control input-lg" value=""  placeholder="登录名">
                                <input name="password" required type="password" class="form-control input-lg" value=""  placeholder="密码">
                            </div>
                            <button class="btn btn-success btn-block btn-lg mb15" type="button" onclick="submitForm()">
                                <span>登陆</span>
                            </button>
                            <p>
                                <a href="extras-forgot.html">忘记密码?</a>
                            </p>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<!-- build:js({.tmp,app}) scripts/app.min.js -->
#include( "/public-script.html")
<!-- endbuild -->
<script type="text/javascript">
    $('#loginform').validate();

    document.onkeydown = function (e) {
        var theEvent = e || window.event;
        var code = theEvent.keyCode || theEvent.which || theEvent.charCode;
        if (code == 13) {
            submitForm();
        }
    }

    function submitForm() {
        if (!$('#loginform').valid()) {
            return false;
        } else {
            $('#loginform').submit();
        }
    }
    function clearForm() {
        $('#loginform').form('clear');
    }

    var msg = '$!{message}';
    if(msg != ''){

        var type = 'error';
        var $layout = 'topRight';
        notyRestart(msg,type,$layout);
    }
</script>
</body>

</html>
